import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./assets/css/reset.less";
import "amfe-flexible";
import "vant/lib/index.css";
import VirtualCollection from "vue-virtual-collection";
import {
  Button,
  NavBar,
  Cell,
  Search,
  Popup,
  RadioGroup,
  Radio,
  Tabbar,
  TabbarItem,
  Icon,
  Form,
  Field,
  CellGroup,
  GridItem,
  Grid,
  Badge,
  Tab,
  Tabs,
  Card,
  Switch,
  ImagePreview,
  Image as VanImage,
  CouponCell,
  CouponList,
  SubmitBar,
  Lazyload,
  Dialog,
  ActionSheet,
  Area,
  Notify,
} from "vant";

createApp(App)
  .use(Button)
  .use(store)
  .use(router)
  .use(NavBar)
  .use(Search)
  .use(Cell)
  .use(CellGroup)
  .use(Popup)
  .use(RadioGroup)
  .use(Radio)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Icon)
  .use(Form)
  .use(Field)
  .use(GridItem)
  .use(Grid)
  .use(Badge)
  .use(VirtualCollection)
  .use(Tab)
  .use(Tabs)
  .use(Card)
  .use(Switch)
  .use(ImagePreview)
  .use(VanImage)
  .use(Dialog)
  .use(CouponCell)
  .use(CouponList)
  .use(SubmitBar)
  .use(Notify)
  .use(Lazyload, {
    lazyComponent: true,
  })
  .use(ActionSheet)
  .use(Area)
  .mount("#app");
